$OpenBSD: patch-libatalk_dsi_dsi_tcp_c,v 1.2 2016/07/30 14:28:40 ajacoutot Exp $

http://sourceforge.net/p/netatalk/code/ci/0b7f7fe6e is wrong for OpenBSD.

--- libatalk/dsi/dsi_tcp.c.orig	Mon Jun  6 13:21:51 2016
+++ libatalk/dsi/dsi_tcp.c	Fri Jul 29 15:06:49 2016
@@ -452,7 +452,12 @@ int dsi_tcp_init(DSI *dsi, const char *hostname, const
 
     if (!address) {
         hints.ai_flags |= AI_PASSIVE;
+#if defined(__OpenBSD__)
+        /* IPv6 sockets only accept IPv6 connections on OpenBSD */
+        hints.ai_family = AF_INET;
+#else
         hints.ai_family = AF_INET6;
+#endif
     } else {
         hints.ai_flags |= AI_NUMERICHOST;
         hints.ai_family = AF_UNSPEC;
